/*

 * Copyright (C) 2021 Huawei Device Co., Ltd.

 * Licensed under the Apache License, Version 2.0 (the "License");

 * you may not use this file except in compliance with the License.

 * You may obtain a copy of the License at

 *

 *     http://www.apache.org/licenses/LICENSE-2.0

 *

 * Unless required by applicable law or agreed to in writing, software

 * distributed under the License is distributed on an "AS IS" BASIS,

 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

 * See the License for the specific language governing permissions and

 * limitations under the License.

 */
package com.fxn.interfaces;

import com.fxn.modals.Img;

import ohos.agp.components.Component;

/**
 * description : 竖直方向的listContainer的item的选中监听
 *
 * @since 2021-04-15
 */
public interface OnVerticalListSelectionListener {
    /**
     * 竖直方向的listContainer的item被点击时的回调
     *
     * @param Img item所对应的img对象
     * @param view view
     * @param firstPos item所在行数
     * @param position item所在列数
     */
    void onClick(Img Img, Component view, int firstPos, int position);

    /**
     * 竖直方向的listContainer的item被长按时的回调
     *
     * @param img item所对应的img对象
     * @param view view
     * @param firstPos item所在行数
     * @param position item所在列数
     */
    void onLongClick(Img img, Component view, int firstPos, int position);
}
